<template>
  <view class="robber">
    <view class="robber-conter">
      <!-- 图片 -->
      <view class="img">
        <img :src="image" alt="" />
        <view class="robber-top">
          今日疯抢
        </view>
      </view>
      <!-- 名称 -->
      <view class="title1" style="font-weight: bolder;padding: 10rpx;">
        {{title1}}
      </view>
      <!-- 物品介绍 -->
      <view class="title2" style="color: rgba(132, 132, 132, 0.4);padding: 8rpx;font-size: 20rpx;">
        {{title2}} | {{title3}} | {{title4}} 
      </view>
      <!-- 介绍 -->
      <view class="ticket">
        <view class="ticket-left">{{title5}}</view>
        <view class="ticket-right"><text>{{title8}}</text>{{title9}}</view>
      </view>
      <!-- 价钱 -->
      <view class="foot">
        <view class="left">
          <view class="price">
            <text style="color: #f1ad7e;font-weight: bolder;">￥{{title6}}</text><text
              style="color: rgba(132, 132, 132, 0.3);">/{{title7}}</text>
          </view>
          <view class="btn">
            <button class="btn">+</button>
          </view>
        </view>
      </view>
    </view>
  </view>

</template>

<script>
  export default {
    props:{
      image:String,
      title1:String,
      title2:String,
      title3:String,
      title4:String,
      title5:String,
      title6:String,
      title7:String,
      title8:String,
      title9:String,
    },
    data() {
      return {

      }
    },
    methods: {

    }
  }
</script>

<style lang="scss">
  .robber {
    width: 100%;
    margin: auto;
  }

  .robber-conter {
    width: 100%;
    background-color: #fff;
  }

  //图片
  .img {
    width: 100%;
    position: relative;

    image {
      width: 100%;
      height: 250rpx;
      border-radius: 10%;
      box-shadow: 0px 5px 10px rgba(132, 132, 132, 0.8);
    }
  }

  .robber-top {
    width: 120rpx;
    height: 50rpx;
    text-align: center;
    line-height: 50rpx;
    font-size: 25rpx;
    font-weight: bolder;
    color: white;
    border-top-left-radius: 20rpx;
    border-bottom-right-radius: 20rpx;
    background-color: #e9a277;
    position: absolute;
    top: 0rpx;
  }

  //介绍
  .ticket {
    display: flex;
    font-size: 23rpx;
    margin-top: 27rpx;
    margin-bottom: 27rpx;
  }

  .ticket-left {
    border: 2px solid #F1AA79;
    color: #F1AA79;
    border-radius: 8rpx;
    letter-spacing: 3rpx;
    width: 120rpx;
    padding-left: 7rpx;
  }

  .ticket-right {
    border: 2px solid #4FBF7B;
    margin-left: 17rpx;
    border-radius: 8rpx;
    width: 120rpx;
    color: #4FBF7B;
    letter-spacing: 3rpx;

    text {
      background-color: #4FBF7B;
      color: #fff;
    }
  }

  //价钱
  .foot {
    .left {
      padding: 7rpx;
      display: flex;
      justify-content: space-between;

      .btn {
        margin-right: 20rpx;

        .btn {
          width: 50rpx;
          height: 50rpx;
          padding-left: 12rpx;
          color: white;
          line-height: 50rpx;
          background: linear-gradient(to bottom right, green, white);
          border-radius: 50%;
        }
      }
    }
  }
</style>
